package cn.yunhe.action;

import cn.yunhe.entity.User;
import cn.yunhe.services.GuoService;
import cn.yunhe.util.BaseUtil;
import lombok.Data;

import java.io.IOException;
import java.io.PrintWriter;

@Data
public class AaAction extends BaseUtil {
    private String message;

    public String execute() throws IOException {
        GuoService guoService = new GuoService();
        message = guoService.zang(message);
        User user = (User) getMapSession().get("user");
        String str=user.getCname()+":"+message;
        PrintWriter out = getResponse().getWriter();
        out.print(str);
        return null;
    }
}
